All Questions
6 questions
1vote
2answers
529views
What do you call a class that can be disabled [closed]
Is there a design pattern that fits this description? A factory that creates classes that can be disabled and enabled. The users of the class don't know if the functionality is enabled or disabled--...
0votes
2answers
512views
State ownership cover everything for a class to be thread safe
As mentioned by Java_author, When defining which variables form an object's state, we want to consider only the data that object owns.... In many case, ownership and encapsulation go together— the ...
1vote
1answer
349views
How to design the system which executes two process independently with different configuration?
I have two process ProcessA and ProcessB. I want to run these two process independent of each other. There is no relation between them at all. Each process should have a different Properties object. ...
6votes
3answers
2kviews
Design solution for communicating between multiple layers
We are developing a framework that has several layers and would be deployed in a multi-threaded environment. Each layer may have its own input/output data type. The top layer takes the input, performs ...
40votes
3answers
33kviews
Can someone explain in simple terms what is the disruptor pattern?
I would like if you could explain to me in a simple way how does the disruptor patter work. This concept has been elusive to me as of know. Perhaps with your help I could comprehend it.
1vote
3answers
2kviews
Design pattern for a multi-threaded URL fetcher in java
I'm looking for hints and suggestions on a design for a multi-threaded URL fetcher in java. Specific requirements are: To fetch each one of around 1,000 URLs periodically The interval between each ...